<%@ tag import="java.util.*" %>
<%@ variable name-given="item" %>
<%@ variable name-given="amount" %>
<%
   @SuppressWarnings("unchecked")
   Map<String, Integer> cart = (Map<String, Integer>)session.getAttribute("cart");		
   if( cart == null ) 
      return; 	
	
   for (Map.Entry<String, Integer> entry : cart.entrySet()) {
	   jspContext.setAttribute( "item", String.valueOf( entry.getKey() ) );
	   jspContext.setAttribute( "amount", String.valueOf( entry.getValue() ) );
%>
<jsp:doBody/>
<% }%> 